import { randomChoice } from "../../../../../core/utils/utils";
import { genderDefine, RaceDefine } from "../../../../defines/race_define";
import { getIdentity } from "../../../../identitys";
import { getMonthTime } from "../../../../time";
import { BasicNpc } from "../../../npc-control/basic_npc";
import backdrop from "./backdrop";
import dialogues from "./dialogues";
import message from "./message";

export default class NpcNode extends BasicNpc {
  constructor(...params) {
    super(...params);
  }

  getName(){
    return '李日天'
  }

  getPeopleAttr(){
    return {
      race: RaceDefine.human.key,
      gender: genderDefine.male,
      money: 2161,
      stone: 0,
      basicAttr: {
        diff: 1,
      },
      useAttr: {
        age: 35,
      },
      identitys: [
        getIdentity('丰华村铁匠铺老板')
      ]
    }
  }

  messageDefine() {
    return message;
  }

  dialogueDefine(){
    return dialogues;
  }

  backdropDefine(){
    return backdrop;
  }

  getIsShop(){
    return true;
  }

  getShopSpecialDiscount(){
    return {
      '家具/木桌子': 1.5
    }
  }
}
